package zheezes.protocol.impl.gbw;

public class GbwMasterAddr {
	private byte addr;
	
    public GbwMasterAddr() {
    }

    public GbwMasterAddr(byte addr) {
        this.addr = addr;
    }

    public byte getData() {
        return addr;
    }
    
    public byte[] getBytes() {
    	return new byte[] { addr };
    }
    
    public int getBytes(byte[] buf, int offset) {
    	buf[offset] = addr;
    	return 1;
    }
}
